﻿// 根据金蝶云星空元数据查询接口获取元数据K3CloudQueryBusinessInfoRequest
// 根据DotLiquid模板生成C#类型，模板存放于Admin.NET.Web.Entwwwroot/Template/K3CloudEntiry.cs.vm
// 当前元数据：[2052, 部门](BD_Department)

using System;
using System.Collections.Generic;
using System.Runtime.Serialization;

namespace Jim.K3Cloud;


/// <summary>
/// Name:单据头 Key:FBillHead EntryName:Department TableName:T_BD_DEPARTMENT EntityType:HeadEntity
/// </summary>
public class BD_Department:K3CloudBaseData<long>
{

    /// <summary>
    /// 名称:数据状态 Key:FDocumentStatus 数据库字段名:FDOCUMENTSTATUS 数据库表名:T_BD_DEPARTMENT 枚举信息:Z:暂存;A:创建;B:审核中;C:已审核;D:重新审核;
    /// </summary>
    public string DocumentStatus {get;set;}
    /// <summary>
    /// 名称:禁用状态 Key:FForbidStatus 数据库字段名:FFORBIDSTATUS 数据库表名:T_BD_DEPARTMENT 枚举信息:A:否;B:是;
    /// </summary>
    public string ForbidStatus {get;set;}
    /// <summary>
    /// 名称:编码 Key:FNumbe数据库字段名:FNUMBE数据库表名:T_BD_DEPARTMENT 枚举信息:
    /// </summary>
    public string Numbe{get;set;}
    /// <summary>
    /// 名称:描述 Key:FDescription 数据库字段名:FDESCRIPTION 数据库表名:T_BD_DEPARTMENT 枚举信息:
    /// </summary> 
    [JsonConverter(typeof(LocaleValueConverter))]
    public string Description {get;set;}
    /// <summary>
    /// 名称:创建组织 Key:FCreateOrgId 数据库字段名:FCREATEORGID 数据库表名:T_BD_DEPARTMENT 枚举信息:
    /// </summary>
    public K3CloudSimpleORG_Organizations CreateOrgId {get;set;}
    public int CreateOrgId_Id {get;set;}
    /// <summary>
    /// 名称:使用组织 Key:FUseOrgId 数据库字段名:FUSEORGID 数据库表名:T_BD_DEPARTMENT 枚举信息:
    /// </summary>
    public K3CloudSimpleORG_Organizations UseOrgId {get;set;}
    public int UseOrgId_Id {get;set;}
    /// <summary>
    /// 名称:创建人 Key:FCreatorId 数据库字段名:FCREATORID 数据库表名:T_BD_DEPARTMENT 枚举信息:
    /// </summary>
    public K3CloudSimpleSEC_User CreatorId {get;set;}
    public int CreatorId_Id {get;set;}
    /// <summary>
    /// 名称:修改人 Key:FModifierId 数据库字段名:FMODIFIERID 数据库表名:T_BD_DEPARTMENT 枚举信息:
    /// </summary>
    public K3CloudSimpleSEC_User ModifierId {get;set;}
    public int ModifierId_Id {get;set;}
    /// <summary>
    /// 名称:创建日期 Key:FCreateDat数据库字段名:FCREATEDAT数据库表名:T_BD_DEPARTMENT 枚举信息:
    /// </summary>
    public DateTime CreateDate {get;set;}
    /// <summary>
    /// 名称:修改日期 Key:FModifyDat数据库字段名:FMODIFYDAT数据库表名:T_BD_DEPARTMENT 枚举信息:
    /// </summary>
    public DateTime FModifyDate{get;set;}
    /// <summary>
    /// 名称:助记码 Key:FHelpCod数据库字段名:FHELPCOD数据库表名:T_BD_DEPARTMENT 枚举信息:
    /// </summary>
    public string HelpCode {get;set;}
    /// <summary>
    /// 名称:部门全称 Key:FFullNam数据库字段名:FFULLNAM数据库表名:T_BD_DEPARTMENT 枚举信息:
    /// </summary>
    [JsonConverter(typeof(LocaleValueConverter))]
    public string FullNam{get;set;}
    /// <summary>
    /// 名称:生效日期 Key:FEffectDat数据库字段名:FEFFECTDAT数据库表名:T_BD_DEPARTMENT 枚举信息:
    /// </summary>
    public DateTime EffectDate{get;set;}
    /// <summary>
    /// 名称:失效日期 Key:FLapseDat数据库字段名:FLAPSEDAT数据库表名:T_BD_DEPARTMENT 枚举信息:
    /// </summary>
    public DateTime LapseDate{get;set;}
    /// <summary>
    /// 名称:审核人 Key:FAuditorID 数据库字段名:FAUDITORID 数据库表名:T_BD_DEPARTMENT 枚举信息:
    /// </summary>
    public K3CloudSimpleSEC_User AuditorID {get;set;}
    public int AuditorID_Id {get;set;}
    /// <summary>
    /// 名称:审核日期 Key:FAuditDat数据库字段名:FAUDITDAT数据库表名:T_BD_DEPARTMENT 枚举信息:
    /// </summary>
    public DateTime AuditDate{get;set;}
    /// <summary>
    /// 名称:上级部门 Key:FParentID 数据库字段名:FPARENTID 数据库表名:T_BD_DEPARTMENT 枚举信息:
    /// </summary>
    public K3CloudSimpleBD_Department ParentID {get;set;}
    public int ParentID_Id {get;set;}
    /// <summary>
    /// 名称:禁用人 Key:FForbidderID 数据库字段名:FFORBIDDERID 数据库表名:T_BD_DEPARTMENT 枚举信息:
    /// </summary>
    public K3CloudSimpleSEC_User ForbidderID {get;set;}
    public int ForbidderID_Id {get;set;}
    /// <summary>
    /// 名称:禁用日期 Key:FForbidDat数据库字段名:FFORBIDDAT数据库表名:T_BD_DEPARTMENT 枚举信息:
    /// </summary>
    public DateTime ForbidDate {get;set;}
    /// <summary>
    /// 名称:HR部门 Key:FIsHRDept 数据库字段名:FISHRDEPT 数据库表名:T_BD_DEPARTMENT 枚举信息:
    /// </summary>
    public bool IsHRDept {get;set;}
    /// <summary>
    /// 名称:车间 Key:FIsStock 数据库字段名:FISSTOCK 数据库表名:T_BD_DEPARTMENT 枚举信息:
    /// </summary>
    public bool IsStock {get;set;}
    /// <summary>
    /// 名称:WIP仓库 Key:FWIPStockID 数据库字段名:FWIPSTOCKID 数据库表名:T_BD_DEPARTMENT 枚举信息:
    /// </summary>
    public K3CloudSimpleBD_STOCK WIPStockID {get;set;}
    public int WIPStockID_Id {get;set;}
    /// <summary>
    /// 名称:WIP仓位 Key:FWIPLocationID 数据库字段名:FWIPLOCATIONID 数据库表名:T_BD_DEPARTMENT 枚举信息:
    /// </summary>
    public long WIPLocationID {get;set;}
    /// <summary>
    /// 名称:层级码 Key:FLevelCod数据库字段名:FLEVELCOD数据库表名:T_BD_DEPARTMENT 枚举信息:
    /// </summary>
    public string LevelCod{get;set;}
    /// <summary>
    /// 名称:深度 Key:FDepth 数据库字段名:FDEPTH 数据库表名:T_BD_DEPARTMENT 枚举信息:
    /// </summary>
    public int Depth {get;set;}
    /// <summary>
    /// 名称:是否根节点 Key:FIsRoot 数据库字段名:FISROOT 数据库表名:T_BD_DEPARTMENT 枚举信息:
    /// </summary>
    public bool IsRoot {get;set;}
    /// <summary>
    /// 名称:部门属性 Key:FDeptPropert数据库字段名:FDEPTPROPERT数据库表名:T_BD_DEPARTMENT 枚举信息:
    /// </summary>
    public K3CloudSimpleBOS_ASSISTANTDATA_SELECT DeptPropert{get;set;}
    public string DeptProperty_Id {get;set;}
    /// <summary>
    /// 名称:部门分组 Key:FGroup 数据库字段名:FGROUP 数据库表名:T_BD_DEPARTMENT 枚举信息:
    /// </summary>
    public K3CloudSimpleBOS_FORMGROUP FGroup {get;set;}
    public int FGroup_Id {get;set;}
    /// <summary>
    /// 名称:来源于s-HKey:FIsSH数据库字段名:FISSH数据库表名:T_BD_DEPARTMENT 枚举信息:
    /// </summary>
    public bool FIsSH{get;set;}
    /// <summary>
    /// 名称:副产品倒冲 Key:FIsCopyFlush 数据库字段名:FISCOPYFLUSH 数据库表名:T_BD_DEPARTMENT 枚举信息:
    /// </summary>
    public bool IsCopyFlush {get;set;}
    /// <summary>
    /// 名称:更新已排 Key:FFinishQtyDepend 数据库字段名:FFINISHQTYDEPEND 数据库表名:T_BD_DEPARTMENT 枚举信息:3:手工上线;1:生产汇报单;2:生产入库单;
    /// </summary>
    public string FinishQtyDepend {get;set;}
    /// <summary>
    /// 名称:是否明细部门 Key:FIsDetailDpt 数据库字段名:FISDETAILDPT 数据库表名:T_BD_DEPARTMENT 枚举信息:
    /// </summary>
    public bool IsDetailDpt {get;set;}
    /// <summary>
    /// 名称:旧部门编码 Key:FOldNumbe数据库字段名:FOLDNUMBE数据库表名:T_BD_DEPARTMENT 枚举信息:
    /// </summary>
    public string FOldNumbe{get;set;}
    /// <summary>
    /// SHR映射实体
    /// </summary>
    public List<BD_DepartmentSHRMapEntity> SHRMapEntit{get;set;}  

}


/// <summary>
/// Name:SHR映射实体 Key:FSHRMapEntitEntryName:SHRMapEntitTableName:T_BAS_HRCLOUDMAPPING4D EntityType:SubHeadEntity
/// </summary>
public class BD_DepartmentSHRMapEntity:K3CloudIDBase<long>
{

    /// <summary>
    /// 名称:SHR内码 Key:FShrId 数据库字段名:FSHRID 数据库表名:T_BAS_HRCLOUDMAPPING4D 枚举信息:
    /// </summary>
    public string FShrId {get;set;}
    /// <summary>
    /// 名称:编码 Key:FSHRNumbe数据库字段名:FNUMBE数据库表名:T_BAS_HRCLOUDMAPPING4D 枚举信息:
    /// </summary>
    public string FSHRNumbe{get;set;}
    /// <summary>
    /// 名称:状态 Key:FSHRStatus 数据库字段名:FSTATUS 数据库表名:T_BAS_HRCLOUDMAPPING4D 枚举信息:
    /// </summary>
    public string FSHRStatus {get;set;}
    /// <summary>
    /// 名称:所属ERP组织 Key:FErpCod数据库字段名:FERPCOD数据库表名:T_BAS_HRCLOUDMAPPING4D 枚举信息:
    /// </summary>
    public string FErpCod{get;set;}  

}
 
